﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;

namespace MCEMediaManager.Code
{
    public class RecordedTVPlugin : MediaPlugin, IMediaPlugin
    {
        public override string Name
        {
            get
            {
                return "Recorded TV";
            }
        }

        public override bool HasTVInterface { get { return true; }}

        private List<string> _RecordedTVFolders;
        public List<string> RecordedTVFolders
        {
            get
            {
                if(_RecordedTVFolders == null)
                    _RecordedTVFolders = new List<string>((string[]) Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Recording", false).GetValue("WatchedFolders", new string[]{@"C:\"}));
                return _RecordedTVFolders;
            }
        }



    }
    public class RecordedTVMediaItem : MediaItem, IMediaItem
    {

    }
}
